import HTTP from '../../../utils/http';
import { API, API_GENERATE } from '../../../config/api.js';



class WarningService {
	//业务预警列表(企业资质,授信账户,授信订单)
	getWarnList(params = {}, config) {
		return HTTP.POST(API_GENERATE(API.WARNING_LIST), params, config || { rejectError: false, handerError: true });
	}
	//审批中数量
	getApprovingAuditCnt(params = {}) {
		return HTTP.GET(API_GENERATE(API.APPROVING_AUDITCNT), params);
	}
	//审批中/驳回列表
	getApprovingList(params = {}) {
		return HTTP.POST(API_GENERATE(API.APPROVING_AUDIT_LIST), params);
	}
}
module.exports = new WarningService();